<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">

<!-- 移动设备支持 -->
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
<meta content="no-cache" http-equiv="pragma">
<meta content="0" http-equiv="expires">
<meta content="telephone=no, address=no" name="format-detection">
<meta name="apple-mobile-web-app-capable" content="yes"> 
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

<link href="/Public/sk/css/reset.css" rel="stylesheet" type="text/css"><!--手机端重置样式-->
<link href="/Public/sk/css/mod115.css" rel="stylesheet" type="text/css"><!--微网站模板115样式-->
    <link rel="stylesheet" type="text/css" href="__ADMIN__/Css/bootstrap.min.css" />
     <link rel="stylesheet" type="text/css" href="__ADMIN__/Css/ui.css" />
      <link rel="stylesheet" type="text/css" href="__ADMIN__/Css/Admin-default.css" />
   
</head>
<body>
<header style="background-color: #ff8000;
width: 100%;
height: 43px;
border-bottom: solid 1px #dc7003;"><div style='width: 100%;
font-size: 1.5em;
line-height: 44px;
color: #FFF;
text-align: center;text-align:center;'>话题列表</div></header>
<div class="page-content-wrap">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="panel panel-default">
                                <div class="panel-body">
<form action="{:U('topic/delete')}" method="post">


<table id="questionnaire-table" class="table table-striped table-hover table-condensed datatable">
    <thead>
        <tr>
            <th>类型</th>
            <th>标题</th>
            <th>创建日期</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    	<volist name="topic" id="vo">
    		<tr>
    			
    			<td>
                            <span class="label label-danger"><i class="fa fa-tag"></i>
                            <switch name="vo.type">
   							 <case value="0">文章</case>
   							 <case value="1">投票</case>
    						
							</switch>
                            </span>
                     
    			</td>
    			<td class="questionnaire_name">{$vo.title}</td>
    			<td class="questionnaire_desc">{$vo.addtime|date=('Y年m月d日'),###}</td>
    			
    			
    			<td>
                    <a href="{:U('topic/edit', array('id' => $vo['id']))}" class="btn btn-default btn-rounded btn-condensed btn-sm" title="编辑问卷"><span class="fa fa-pencil"></span>
                    </a>
                    
                   <eq name="vo.type" value="1"> 
                   <a href="{:U('Questions/index', array('questionnaire_id' => $vo['questionnaires_id']))}" class="btn btn-default btn-rounded btn-condensed btn-sm" title="问卷配题"><span class="fa fa-list-ul"></span></a>
                   </eq>
                    <a href="{:U('topic/delete', array('id' => $vo['id']))}" class="btn btn-danger btn-rounded btn-condensed btn-sm" title="删除问卷"><span class="fa fa-times"></span></a>
    			</td>
    		</tr>
    	</volist>
    </tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>